package 实战;

public class MyThread extends Thread{
    private int count=0;
    @Override
     public void run() {
        super.run();
        for(int i=1;i<=1000;i++){
            this.count++;
            System.out.println(Thread.currentThread().getName()+"加一  "+"count: "+count);
        }
    }
    int getCount(){
        return this.count;
    }

}
